package cn.gson.crm.model.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;

/**
 * 项目计划表
 * @author john
 *
 */
@Entity
@Table(name="tb_jx_project_plan")
@Data
public class ProjectPlan {
	//编号
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="tb_project_plan_id")
	private Long id;	
	//计划名
	@Column(name="plan_name")
	private String planName;
	
	//创建时间
	@Column(name="build_time")
	private String buildTime;
	
	//计划内容
	@Column(name="plan_content")
	private String planContent;
	
	//起始时间
	@Column(name="start_time")
	private String startTime;
	
	//结束时间
	@Column(name="end_time")
	private String endTime;
	
	//需要支持
	private String support;
	
	//完成情况
	private String finish;
	
	//项目id
	@ManyToOne
	@JoinColumn(name="project_id")
	private Project project;
	
	
	private Boolean deleted;
	

	//关联学员表,一对一
	@ManyToOne
	@JoinColumn(name="student_id")
	private Student student;

}
